home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Text Processing / Emacs 3.1.0 / emacs.rc < prev    next >
Text File  |  1992-03-16  |  1KB  |  52 lines

  1. ; Earle's emacs.rc file.
  2. ; Default MicroEmacs startup file for use with the Macintosh.
  3. ; Thu Nov 30 1989
  4. ;
  5. ; Everybody seems to want to use hard tabs of 4 on the Mac.
  6. ;
  7. 4    set $hardtab
  8. ;    Set up auto CMODE for C language source and header files,
  9. ;    also resource definition files.
  10.  
  11. 20    store-macro
  12.     set %rctmp &sin $cfname "."
  13.     !if &equ %rctmp 0
  14.         !return
  15.     !endif
  16.     set %rctmp &mid $cfname &add %rctmp 1 5
  17.     !if &or &seq %rctmp "c" &seq %rctmp "h"
  18.         add-mode "cmode"
  19.     !endif
  20.     !if &seq %rctmp "r"
  21.         add-mode "cmode"
  22.     !endif
  23.     !if &seq %rctmp "mss"
  24.         add-mode "wrap"
  25.     !endif
  26. !endm
  27. set $readhook execute-macro-20
  28.  
  29. ; For vt100 fanatics.
  30.  
  31. bind-to-key set-mark ^@
  32.  
  33. ; Vi does something like this.  This is control-6, but would also
  34. ; be command-up on the Macintosh.
  35.  
  36. bind-to-key next-buffer ^^
  37.  
  38. ; The Macintosh can do smooth scroll without much performance hit.
  39. ; Set to zero if you don't care for it.
  40.  
  41. set $sscroll 1
  42.  
  43. ; This example shows how to set the default window size.  Uncomment
  44. ; and adjust numeric parameters to taste.
  45. ;
  46. ; Set the window size to 100 by 20 characters.
  47. ; set $xpos 100
  48. ; set $ypos 20
  49. ; mouse-resize-screen
  50. ;
  51.  
  52.